package com.icode.core.page;

import java.util.List;

/**
 * User: alexz
 * Date: 2015/10/19
 * Time: 17:26
 * <p/>
 * the interface of pager
 */
public interface Pager<T> {

    /**
     * @return the start page
     */
    public int getStart();

    /**
     * @return the size per page
     */
    public int getSizePerPage();

    /**
     * @return the total count of records
     */
    public int getTotal();

    /**
     * @return the page size of records
     */
    public int getSize();

    /**
     * @return the records after page
     */
    public List<T> getResults();

    /**
     * set the start page
     *
     * @param start
     */
    public void setStart(int start);

    /**
     * set the size per page
     *
     * @param sizePerPage
     */
    public void setSizePerPage(int sizePerPage);
}
